import Vue from 'vue'
import VueRouter from 'vue-router'
import Left from '../views/left.vue'
import Bar from '../views/ToolBar.vue'
import AccountList from '../views/AccountList.vue'

Vue.use(VueRouter)


const routes = [
  {
    path: '/left',
    name: 'Left',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: Left
  },
  {
    path: '/ToolBar',
    name: 'Bar',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: Bar
  },
  {
    path: '/AccountList',
    name: 'AccountList',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: AccountList
  }

]

const router = new VueRouter({
  routes
})

export default router
